package com.mocha.common.core;

public enum DBStatus {

    Valid(1),
    Deleted(-1);

    private int code;

    DBStatus(int code){
        this.code = code;
    }

    public int code(){
        return this.code;
    }

    public static boolean isValid(Boolean isBit){
        return null == isBit || isBit.booleanValue()==false ? false : true;
    }

}
